package com.developer.platform.application.command.cmd;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;

/**
 *
 * @author ：qiaoliang
 * @date ：2020-11-09
 */
@ApiModel("个人密码修改请求模型")
public class UserPasswordUpdate {
    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码不能为空！")
    private String newPassword;
    @ApiModelProperty(value = "旧密码", required = true)
    @NotBlank(message = "旧密码不能为空！")
    private String oldPassword;

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }
}
